// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

  },
  globalData: {
    userInfo: null,
    uid: "o6zm85FuIigAeVmal1s1HFZtqtiU",
    // remote_ip: "http://192.168.1.111:80/",
    remote_ip: "http://127.0.0.1:5000/",
    // remote_ip: "http://wgy.27isp.cn/",
    full_screen_color: '#000000',
    front_color: '#ffffff',
    title: "实验",
    target_color: "#000000",
    index_desc: 'welcome!',
    is_over: true,
  },

  // 页面初始化
  page_color_init() {
    // 设置背景色
    wx.setNavigationBarColor({
      backgroundColor: this.globalData.full_screen_color,
      frontColor: this.globalData.front_color,
    })
    // 设置标题
    wx.setNavigationBarTitle({
      title: this.globalData.title,
    })
    wx.setBackgroundColor({
      backgroundColor: this.globalData.full_screen_color,
    })
  }



})